<script>
import EditorComp from "@/components/goods/GoodsEdit.vue";
import message from "@/tools/Message";

export default {
	name: "GoodsDetailSetting",
	components: {EditorComp},
	data() {
		return {
			content: ""
		}
	},
	methods: {
		contentChange(content) {
			this.content = content
		},
		cancel() {
			this.$emit("cancel")
		},
		submit() {
			message.success('设置详情HTML：' + this.content)
		},
	}
}
</script>

<template>
	<div style="margin-bottom:20px">
		<EditorComp @contentChange="contentChange"></EditorComp>
	</div>
	<el-container class="content-row">
		<el-button type="success" plain @click="submit">提交</el-button>
		<div style="margin-left:40px"></div>
		<el-button type="warning" plain @click="cancel">取消</el-button>
	</el-container>
</template>

<style scoped>

</style>